package com.study.order.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

import java.io.Serializable;

/**
 * @author caoqianhuan
 * @date 2022/8/23
 * @Description:
 */
public enum SexEnum implements IEnum<Integer> {
    MALE(0, "女"),
    FE_MALE(1, "男");
    private Integer sex;
    private String desc;

    private SexEnum(Integer sex, String desc) {
        this.sex = sex;
        this.desc = desc;
    }
    @Override
    public Integer getValue() {
        return this.sex;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
